import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
    state: {
        userInfo: {
            hex_id: null,
            nickname: "游客"
        },
        factorList: [],
        industryList: [],
    },
    mutations: {
        setUserInfo(state, payload) {
            state.userInfo = payload
        },
        setIndustryList(state, payload) {
            state.industryList = payload
        },
        setFactorList(state, payload) {
            state.factorList = payload
        },
    }
})
